﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entities
{
    // Entity Quyen map with SanPham Table
    class NhanVien
    {
        // properties
        private int maNV;

        private int maQuyen;

        private string userName;

        private string password;

        private string email;

        private string cMND;

        private string HoTen;

        private DateTime ngaySinh;

        private bool gioiTinh;

        private string sDT;

        private string diaChi;

        private DateTime ngayVaoLam;

        // Setters and Getters

        public int MaNV
        {
            get { return maNV; }
            set { maNV = value; }
        }
        public int MaQuyen
        {
            get { return maQuyen; }
            set { maQuyen = value; }
        }
        public string UserName
        {
            get { return userName; }
            set { userName = value; }
        }
        public string Password
        {
            get { return password; }
            set { password = value; }
        }
        public string Email
        {
            get { return email; }
            set { email = value; }
        }
        public string CMND
        {
            get { return cMND; }
            set { cMND = value; }
        }
        public string HoTen1
        {
            get { return HoTen; }
            set { HoTen = value; }
        }
        public DateTime NgaySinh
        {
            get { return ngaySinh; }
            set { ngaySinh = value; }
        }
        public bool GioiTinh
        {
            get { return gioiTinh; }
            set { gioiTinh = value; }
        }
        public string SDT
        {
            get { return sDT; }
            set { sDT = value; }
        }
        public string DiaChi
        {
            get { return diaChi; }
            set { diaChi = value; }
        }
        public DateTime NgayVaoLam
        {
            get { return ngayVaoLam; }
            set { ngayVaoLam = value; }
        }
        // Constructors
        public NhanVien()
        {
 
        }
        public NhanVien(int maNV, int maQuyen, string userName, string password, string email, string cMND,
            string hoTen, DateTime ngaySinh, bool gioiTinh, string sDT, string diaChi, DateTime ngayVaoLam)
        {
            this.maNV = maNV;
            this.maQuyen = maQuyen;
            this.userName = userName;
            this.password = password;
            this.email = email;
            this.cMND = cMND;
            this.HoTen = hoTen;
            this.ngaySinh = ngaySinh;
            this.gioiTinh = gioiTinh;
            this.sDT = sDT;
            this.diaChi = diaChi;
            this.ngayVaoLam = ngayVaoLam;
        }
    }
}
